package stream.numbertype;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhang peipei
 */
public class LongStreamBase {

    public static void main(String[] args) {
        longTest();
    }

    public static void longTest() {
        List<Number> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);

        long sum = list.stream().map(e -> {
            e = e.longValue() + 10L;
            return e;
        }).mapToLong(Number::longValue).max().getAsLong();

        System.out.println(sum);
    }
}
